  {include file="public/header" /} 
     <style>
      ul.blog-list li {
        padding: 20px 20px 20px 0;
        border: 1px solid #ddd;
        box-shadow: 0 2px 5px 0 rgb(28 34 43 / 10%);
        margin-bottom: 30px;
        height: auto;
        overflow: hidden;
      }
      .blog-left {
        float: left;
        width: 20%;
        padding: 0 10px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .blog-right {
        float: left;
        width: 80%;
      }

      .blog-right span {
        color: #616263;
        display: inline-block;
        background: #eff2f6;
        padding: 5px 8px;
        border-radius: 3px;
        margin-left: 10px;
      }

      ul.blog-list a {
        color: #000;
      }
      .layui-laypage-em {
        background-color: #488bca !important;
      }
      .layui-laypage a:hover {
        color: #488bca;
      }
      .layui-laypage a {
        font-size: 14px;
      }
      .archives {
        padding: 40px 20px 20px;
        color: #333;
      }
      .archives ul {
        margin-top: 25px;
        padding: 0;
      }
      .archives span {
        color: #616263;
        padding: 3px;
      }
      .archives ul li {
        float: left;
        margin-right: 50px;
      }
      .layui-breadcrumb {
  padding-left: 15px;
}
.layui-breadcrumb a:hover{color:#428bca;}
*{
    box-sizing: border-box;
} 
h1, h2, h3,h4 {
  font-weight: 700 !important;
}
.layui-card-header {
  width: 100%;
  border-bottom: 1px solid #999 !important;
}
.layui-card {
  padding: 10px 20px 50px;
  margin-bottom: -16px !important;
}
p {
  margin: 0 0 10px !important;
}
@media screen and (max-width: 768px) {

  h1{font-size:14px;}
}
    </style>
<div class="layui-container" style=''>
      <div class="layui-card">
        <span class="layui-breadcrumb" lay-separator=">">
          <a href="index.html" title='index'>{:lang('Home')}</a>
          <a href="{:url('News/index')}" title='news'>{:lang('News')}</a>
          <a><cite>{:lang('Blog')}</cite></a>
        </span>
        <div class="layui-card-header">
          <h1>{:lang('Blog')}</h1>
        </div>
        <div class="layui-card-body">
          <div class="layui-row">
            <ul class="blog-list">
              {volist name="blog" id="data"}
              <a href="{:url('News/detail')}?id={$data['id']}" title="{$data['title']}">
                <li>
                  <div class="blog-left" style="height: 106px">
                    <img width="150" src="{$data['img']}" alt="{$data['title']}"/>
                  </div>
                  <div class="blog-right">
                    <span class="date">{:str_replace("-","/",substr($data['create_time'],0,10))}</span>
                    <h4>{$data['title']}</h4>
                    <p>
                      {:strip_tags(substr($data['content'],0,400))}...
                    </p>
                  </div>
                </li>
              </a>
              {/volist} 
            </ul>
          </div>
           <style>
            /*分页*/
            .pagination{height: 32px;}
            .pagination li { float: left;width:30px;height:30px;line-height: 30px;border-top:1px solid #e2e2e2;border-left:1px solid #e2e2e2;border-bottom:1px solid #e2e2e2;text-align:center;cursor:pointer; }
            .pagination li a{width:100%;height:100%;display:inline-block;}
            .pagination li:last-child{border-right:1px solid #e2e2e2}
            .pagination .disabled{color:#e2e2e2}
            .pagination .active{background:#36648a;color:#ffffff;height:32px;margin-top:-1px;line-height:32px}
          </style>
          {$blog|raw}


          <div class="archives">
            <h3>ARCHIVES</h3>
            <ul>
              {volist name="year" id="data"}
              <li>
                <a href="{:url('News/year')}?year={$data['y']}"><span class="layui-icon layui-icon-triangle-r" style='color:#36648a'>
                </span>{$data['y']}<span>({$data['num']})</span></a>
              </li>
              {/volist} 
             </ul>
          </div>
        </div>
      </div>
    </div>
  {include file="public/footer" /}   

    <script>
      layui.use("element", function () {
        var element = layui.element;
        element.on("tab(demo)", function (data) {
          console.log(data);
        });
      });
    </script>  